package com.ve.clexer.tree;

import java.util.ArrayList;

public class RangeNode extends Node {

    public ArrayList<Variable> variables = new ArrayList<Variable>();
    public ArrayList<CustomType> types = new ArrayList<CustomType>();
    public ArrayList<Function> functions = new ArrayList<Function>();
    public static final String DOCUMENT = "document";
    public static final String FUNCTION = "function";
    public static final String CLASS = "class";
    public static final String NAMESPACE = "namespace";
    public static final String STRUCT = "struct";
    public static final String UNION = "union";
    public int detailType;

    public RangeNode(String name) {
        this.name = name;
    }

    public RangeNode() {
    }

    public void setDetailType(int detailType) {
        this.detailType = detailType;
    }

    public int getDetailType() {
        return detailType;
    }

    public void addFunction(Function fun) {
        functions.add(fun);
    }

    public void addVaraable(Variable var) {
        variables.add(var);
    }

    public void addClassType(CustomType cla) {
        types.add(cla);
    }

}
